3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
A torus is a three-dimensional object formed by the rotation of an ellipse about an axis in the plane of the ellipse that does not cut the ellipse. The major radius is the distance of the center of the ellipse from that axis. A torus is defined by the TQ3TorusData data type. See "Creating and Editing Tori" for a description of the routines you can use to create and edit tori. Figure 35 shows a torus.
Figure 36 shows the standard surface parameterization of a torus.
Figure 36 The standard surface parameterization of a torus
typedef struct TQ3TorusData {
TQ3Point3D origin;
TQ3Vector3D orientation;
TQ3Vector3D majorRadius;
TQ3Vector3D minorRadius;
float ratio;
float uMin, uMax, vMin, vMax;
TQ3EndCap caps;
TQ3AttributeSet interiorAttributeSet;
TQ3AttributeSet torusAttributeSet;
} TQ3TorusData;
Previous | QD3D Book | Overview | Chapter Contents | Next |